var initCmsNodeInfoSearchPage = function(){
	jQuery('#ligerTypeSearcher').ligerComboBox({
		data:cmsNodeTypeRenderData,
		valueField:'value',
		textField:'text',
		valueFieldID:'typeSearcher'
	});
	jQuery('#ligerValidSearcher').ligerComboBox({
		data:validRenderData,
		valueField:'value',
		textField:'text',
		valueFieldID:'validSearcher'
	});
};

var getCmsNodeInfoSearchParams = function(){
	var cmsnodeinfoBean = {};
	var temp;
	temp = jQuery('#nameSearcher').val();
	if(temp){
		cmsnodeinfoBean.name = temp;
	}
	temp = jQuery('#typeSearcher').val();
	if(temp){
		cmsnodeinfoBean.type = temp;
	}
	temp = jQuery('#pidSearcher').val();
	if(temp){
		cmsnodeinfoBean.pid = temp;
	}
	temp = jQuery('#sidSearcher').val();
	if(temp){
		cmsnodeinfoBean.sid = temp;
	}
	temp = jQuery('#validSearcher').val();
	if(temp){
		cmsnodeinfoBean.valid = temp;
	}
	return cmsnodeinfoBean;
}

jQuery(function(){
	initCmsNodeInfoSearchPage();
	jQuery('#searchCmsNodeInfo').click(function(){
		cmsnodeinfoManager.loadServerData(getCmsNodeInfoSearchParams());
	});
});


